/**
 * @author boiler
 * @data
 * @description 定义数据管理器state getters mutations actions modules
 * 
 */

import Vue from 'vue'
import Vuex from 'vuex'
import persistedState from 'vuex-persistedstate'
Vue.use(Vuex)

import common from './common'
const store =new Vuex.Store({
    modules:{
        common,
           token:'init token',
           booksList:[],
           UserList:[]
        
    },
    plugins:[ 
        persistedState({storage:window.sessionStorage})
    ],
    
})
export default store